﻿@{
    ViewBag.Title = "DanhSachTaiKhoan";
    Layout = "~/Views/Admin/_LayoutAdmin.cshtml";
}

<h2>DanhSachTaiKhoan</h2>

<table width ="100%" border = '10'>
    <tr>
        <th></th>
        <th>
            TenTaiKhoan
        </th>
        <th>
            MatKhau
        </th>
        <th>
            MaLoaiTaiKhoan
        </th>
        <th>
            Avatar
        </th>
        <th>
            TrangThai
        </th>
        <th>
            DiemTinCayBan
        </th>
        <th>
            DiemTinCayMua
        </th>
        <th>
            MaThongTinTK
        </th>
        <th>
            Email
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
        <form id="tk-sua" action="/Admin/SuaThongTin">
        <input type="hidden" value="@item.MaTaiKhoan" name="MaTaiKhoan" />
        <button type="submit">Sửa</button>
        </form>
       
        </td>
        <td>
            @item.TenTaiKhoan
        </td>
        <td>
            @item.MatKhau
        </td>
        <td>
            @item.MaLoaiTaiKhoan
        </td>
        <td>
            @item.Avatar
        </td>
        <td>
            @item.TrangThai
        </td>
        <td>
            @item.DiemTinCayBan
        </td>
        <td>
           @item.DiemTinCayMua
        </td>
        <td>
            @item.MaThongTinTK
        </td>
        <td>
            @item.Email
        </td>
    </tr>
}

</table>

